﻿<UserControl x:Class="ViewParametrerNouvelleGeneration"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:OMANE.Modules.PMT"
             xml:lang="fr-FR"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <GroupBox Header="Paramétrer la création des nouvelles générations">
            <local:AdvancedDatagrid x:Name="ngenDgrid"
                SelectionMode="Extended" 
                SelectionUnit="CellOrRowHeader" 
                ColumnWidth="*" 
                Margin="5" 
                ItemsSource="{Binding ListeNouvelleGeneration}" 
                CanUserAddRows="False"
                CanUserDeleteRows="False" 
                CanUserReorderColumns="False">

                <local:AdvancedDatagrid.ContextMenu>
                    <ContextMenu>
                        <MenuItem Header="Modifier les valeurs" Click="MenuItem_Modifier_Valeurs_Click" />
                        <MenuItem Header="Estimer à partir du CRT" />
                    </ContextMenu>
                </local:AdvancedDatagrid.ContextMenu> 
                
            </local:AdvancedDatagrid>
        </GroupBox>
        
        <Button Grid.Row="1" Content="Sauvegarder les changements" Padding="2" Margin="5" HorizontalAlignment="Right" />
    </Grid>
</UserControl>
